<template>
  <div>
    <div class="kb-title">
      <span class="title-word">创作服务</span>
      <span class="title-word-en">Authoring&nbsp;Services</span>
    </div>
    <div class="u-flex right-box1 u-row-between">
      <div class="item item1">
        <CountTo :start-val="startVal" :end-val="dataFrom.picture" :duration="2000"></CountTo>
      </div>
      <div class="item item2">
        <CountTo :start-val="startVal" :end-val="dataFrom.literalNum" :duration="2000"></CountTo>
      </div>
      <div class="item item2">
        <CountTo :start-val="startVal" :end-val="dataFrom.video" :duration="2000"></CountTo>
      </div>
    </div>
  </div>
</template>

<script>
import dataFrom from '@/assets/json/authoringService.json'
import CountTo from 'vue-count-to'
export default {
  components: {
    CountTo
  },
  data(){
    return {
      startVal: 0,
      dataFrom: dataFrom
    }
  }
}
</script>
